.class public Lcom/xingbook/ecloud/d/a;
.super Ljava/lang/Object;


# static fields
.field private static a:Lcom/xingbook/ecloud/d/a;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static a()Lcom/xingbook/ecloud/d/a;
    .locals 1

    sget-object v0, Lcom/xingbook/ecloud/d/a;->a:Lcom/xingbook/ecloud/d/a;

    if-nez v0, :cond_0

    new-instance v0, Lcom/xingbook/ecloud/d/a;

    invoke-direct {v0}, Lcom/xingbook/ecloud/d/a;-><init>()V

    sput-object v0, Lcom/xingbook/ecloud/d/a;->a:Lcom/xingbook/ecloud/d/a;

    :cond_0
    sget-object v0, Lcom/xingbook/ecloud/d/a;->a:Lcom/xingbook/ecloud/d/a;

    return-object v0
.end method

.method private a(Ljava/lang/String;Z)Lcom/xingbook/park/e/c;
    .locals 7

    const/4 v1, 0x0

    const/4 v3, 0x1

    const/4 v6, 0x0

    if-nez p2, :cond_1

    if-eqz p1, :cond_0

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v0

    const-string v2, "http://app2.xingbook.com/ec/myECCourses.do"

    new-array v3, v3, [Lorg/apache/http/message/BasicNameValuePair;

    new-instance v4, Lorg/apache/http/message/BasicNameValuePair;

    const-string v5, "gradeId"

    invoke-direct {v4, v5, p1}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v4, v3, v6

    invoke-virtual {v0, v2, v3}, Lcom/xingbook/park/e/a;->b(Ljava/lang/String;[Lorg/apache/http/message/BasicNameValuePair;)I

    move-result v0

    :goto_0
    invoke-static {v0}, Lcom/xingbook/park/e/a;->a(I)Z

    move-result v2

    if-nez v2, :cond_2

    move-object v0, v1

    :goto_1
    return-object v0

    :cond_0
    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v0

    const-string v2, "http://app2.xingbook.com/ec/myECCourses.do"

    new-array v3, v6, [Lorg/apache/http/message/BasicNameValuePair;

    invoke-virtual {v0, v2, v3}, Lcom/xingbook/park/e/a;->b(Ljava/lang/String;[Lorg/apache/http/message/BasicNameValuePair;)I

    move-result v0

    goto :goto_0

    :cond_1
    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v0

    const-string v2, "http://app2.xingbook.com/ec/invite.do"

    new-array v3, v3, [Lorg/apache/http/message/BasicNameValuePair;

    new-instance v4, Lorg/apache/http/message/BasicNameValuePair;

    const-string v5, "no"

    invoke-direct {v4, v5, p1}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v4, v3, v6

    invoke-virtual {v0, v2, v3}, Lcom/xingbook/park/e/a;->a(Ljava/lang/String;[Lorg/apache/http/message/BasicNameValuePair;)I

    move-result v0

    goto :goto_0

    :cond_2
    new-instance v2, Lcom/xingbook/park/e/c;

    invoke-direct {v2, v0}, Lcom/xingbook/park/e/c;-><init>(I)V

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v0

    new-instance v3, Lcom/xingbook/ecloud/d/c;

    invoke-direct {v3, p0, v2, v2}, Lcom/xingbook/ecloud/d/c;-><init>(Lcom/xingbook/ecloud/d/a;Lcom/xingbook/park/e/c;Lcom/xingbook/park/e/c;)V

    invoke-virtual {v0, v3}, Lcom/xingbook/park/e/a;->a(Lorg/xml/sax/helpers/DefaultHandler;)I

    move-result v0

    const/16 v3, 0x64

    if-ne v0, v3, :cond_3

    move-object v0, v2

    goto :goto_1

    :cond_3
    move-object v0, v1

    goto :goto_1
.end method


# virtual methods
.method public a(Ljava/lang/String;)Lcom/xingbook/park/e/c;
    .locals 6

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v0

    const-string v1, "http://app2.xingbook.com/store/courseBookDownload.do"

    const/4 v2, 0x1

    new-array v2, v2, [Lorg/apache/http/message/BasicNameValuePair;

    const/4 v3, 0x0

    new-instance v4, Lorg/apache/http/message/BasicNameValuePair;

    const-string v5, "orfId"

    invoke-direct {v4, v5, p1}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v4, v2, v3

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/park/e/a;->b(Ljava/lang/String;[Lorg/apache/http/message/BasicNameValuePair;)I

    move-result v1

    new-instance v0, Lcom/xingbook/park/e/c;

    invoke-direct {v0, v1}, Lcom/xingbook/park/e/c;-><init>(I)V

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v1

    new-instance v2, Lcom/xingbook/ecloud/d/b;

    invoke-direct {v2, p0, v0, v0}, Lcom/xingbook/ecloud/d/b;-><init>(Lcom/xingbook/ecloud/d/a;Lcom/xingbook/park/e/c;Lcom/xingbook/park/e/c;)V

    invoke-virtual {v1, v2}, Lcom/xingbook/park/e/a;->a(Lorg/xml/sax/helpers/DefaultHandler;)I

    move-result v1

    const/16 v2, 0x64

    if-ne v1, v2, :cond_0

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)Lcom/xingbook/park/e/c;
    .locals 7

    const/4 v0, 0x0

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v1

    const-string v2, "http://app2.xingbook.com/ec/ecCourseDetail.do"

    const/4 v3, 0x2

    new-array v3, v3, [Lorg/apache/http/message/BasicNameValuePair;

    const/4 v4, 0x0

    new-instance v5, Lorg/apache/http/message/BasicNameValuePair;

    const-string v6, "courseId"

    invoke-direct {v5, v6, p1}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v5, v3, v4

    const/4 v4, 0x1

    new-instance v5, Lorg/apache/http/message/BasicNameValuePair;

    const-string v6, "gradeId"

    invoke-direct {v5, v6, p2}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v5, v3, v4

    invoke-virtual {v1, v2, v3}, Lcom/xingbook/park/e/a;->b(Ljava/lang/String;[Lorg/apache/http/message/BasicNameValuePair;)I

    move-result v2

    invoke-static {v2}, Lcom/xingbook/park/e/a;->a(I)Z

    move-result v1

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return-object v0

    :cond_1
    new-instance v1, Lcom/xingbook/park/e/c;

    invoke-direct {v1, v2}, Lcom/xingbook/park/e/c;-><init>(I)V

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v2

    new-instance v3, Lcom/xingbook/ecloud/d/d;

    invoke-direct {v3, p0, v1, p1, v1}, Lcom/xingbook/ecloud/d/d;-><init>(Lcom/xingbook/ecloud/d/a;Lcom/xingbook/park/e/c;Ljava/lang/String;Lcom/xingbook/park/e/c;)V

    invoke-virtual {v2, v3}, Lcom/xingbook/park/e/a;->a(Lorg/xml/sax/helpers/DefaultHandler;)I

    move-result v2

    const/16 v3, 0x64

    if-ne v2, v3, :cond_0

    move-object v0, v1

    goto :goto_0
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;II)Lcom/xingbook/park/e/c;
    .locals 8

    const/4 v0, 0x0

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v1

    const-string v2, "http://app2.xingbook.com/ec/modifyState.do"

    const/4 v3, 0x4

    new-array v3, v3, [Lorg/apache/http/message/BasicNameValuePair;

    const/4 v4, 0x0

    new-instance v5, Lorg/apache/http/message/BasicNameValuePair;

    const-string v6, "gradeId"

    invoke-direct {v5, v6, p1}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v5, v3, v4

    const/4 v4, 0x1

    new-instance v5, Lorg/apache/http/message/BasicNameValuePair;

    const-string v6, "courseId"

    invoke-direct {v5, v6, p2}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v5, v3, v4

    const/4 v4, 0x2

    new-instance v5, Lorg/apache/http/message/BasicNameValuePair;

    const-string v6, "od"

    invoke-static {p3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v5, v6, v7}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v5, v3, v4

    const/4 v4, 0x3

    new-instance v5, Lorg/apache/http/message/BasicNameValuePair;

    const-string v6, "type"

    invoke-static {p4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v5, v6, v7}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v5, v3, v4

    invoke-virtual {v1, v2, v3}, Lcom/xingbook/park/e/a;->a(Ljava/lang/String;[Lorg/apache/http/message/BasicNameValuePair;)I

    move-result v2

    invoke-static {v2}, Lcom/xingbook/park/e/a;->a(I)Z

    move-result v1

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return-object v0

    :cond_1
    new-instance v1, Lcom/xingbook/park/e/c;

    invoke-direct {v1, v2}, Lcom/xingbook/park/e/c;-><init>(I)V

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v2

    new-instance v3, Lcom/xingbook/ecloud/d/f;

    invoke-direct {v3, p0, v1, v1}, Lcom/xingbook/ecloud/d/f;-><init>(Lcom/xingbook/ecloud/d/a;Lcom/xingbook/park/e/c;Lcom/xingbook/park/e/c;)V

    invoke-virtual {v2, v3}, Lcom/xingbook/park/e/a;->a(Lorg/xml/sax/helpers/DefaultHandler;)I

    move-result v2

    const/16 v3, 0x64

    if-ne v2, v3, :cond_0

    move-object v0, v1

    goto :goto_0
.end method

.method public b()Lcom/xingbook/park/e/c;
    .locals 4

    const/4 v0, 0x0

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v1

    const-string v2, "http://app2.xingbook.com/ec/myGrades.do"

    const/4 v3, 0x0

    new-array v3, v3, [Lorg/apache/http/message/BasicNameValuePair;

    invoke-virtual {v1, v2, v3}, Lcom/xingbook/park/e/a;->b(Ljava/lang/String;[Lorg/apache/http/message/BasicNameValuePair;)I

    move-result v2

    invoke-static {v2}, Lcom/xingbook/park/e/a;->a(I)Z

    move-result v1

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return-object v0

    :cond_1
    new-instance v1, Lcom/xingbook/park/e/c;

    invoke-direct {v1, v2}, Lcom/xingbook/park/e/c;-><init>(I)V

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v2

    new-instance v3, Lcom/xingbook/ecloud/d/e;

    invoke-direct {v3, p0, v1, v1}, Lcom/xingbook/ecloud/d/e;-><init>(Lcom/xingbook/ecloud/d/a;Lcom/xingbook/park/e/c;Lcom/xingbook/park/e/c;)V

    invoke-virtual {v2, v3}, Lcom/xingbook/park/e/a;->a(Lorg/xml/sax/helpers/DefaultHandler;)I

    move-result v2

    const/16 v3, 0x64

    if-ne v2, v3, :cond_0

    move-object v0, v1

    goto :goto_0
.end method

.method public b(Ljava/lang/String;)Lcom/xingbook/park/e/c;
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/xingbook/ecloud/d/a;->a(Ljava/lang/String;Z)Lcom/xingbook/park/e/c;

    move-result-object v0

    return-object v0
.end method

.method public c(Ljava/lang/String;)Lcom/xingbook/park/e/c;
    .locals 1

    const/4 v0, 0x1

    invoke-direct {p0, p1, v0}, Lcom/xingbook/ecloud/d/a;->a(Ljava/lang/String;Z)Lcom/xingbook/park/e/c;

    move-result-object v0

    return-object v0
.end method
